xenpaging: do not use DPRINTF/ERROR if xch handle is unavailable
authorOlaf Hering <olaf@aepfle.de>
Tue, 14 Dec 2010 18:50:49 +0000 (18:50 +0000)
committerOlaf Hering <olaf@aepfle.de>
Tue, 14 Dec 2010 18:50:49 +0000 (18:50 +0000)
commitfd0b80d8afe692f6a2d35a091fee49ea2784d8df
tree37decc5601b9ad1475a6468562fe646351fa81c7
parent77f428d66094ad7fc9651bddbc0bcc6590ac42ce
xenpaging: do not use DPRINTF/ERROR if xch handle is unavailable

Fix DPRINTF/ERROR usage. Both macros reference a xch variable in local scope.
If xc_interface_open fails and after xc_interface_close, both can not be used
anymore. Use standard fprintf for this case.

Remove the code to print the exit value, its not really useful.
Its a left-over for debugging from an earlier patch.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/xenpaging/xenpaging.c